﻿var fvopen_callback;
function open_fv(data, callback) {
    fvopen_callback = callback;
    window.external.FV_Open(data,"fvopen_getback");
}

function fvopen_getback(json) {
    fvopen_callback(json);
}


function close_fv() {
    window.external.FV_Close();
}



var fvgetfeature_callback;
function getfeature_fv(data, callback) {
    fvgetfeature_callback = callback;
    window.external.FV_GetFeature(data, "fvgetfeature_getback");
}

function fvgetfeature_getback(json) {
    fvgetfeature_callback(json);
}


function canel_fv() {
    window.external.FV_Cancel();
}


var contrast_callback;
function contrast_fv(data, callback) {
    contrast_callback = callback;
    window.external.FV_Contrast(data, "contrast_getback");
}

function contrast_getback(json) {
    contrast_callback(json);
}